﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BaseSet.Data;
using BaseSet.Logic;
using BaseSet.Entity;
using BaseSet.Framework;
using BaseSet.Entity.Common;
using BaseSet.Entity.Common.Text;
using BaseSet;
using System.Data;

namespace WebSite.Ajax
{
    public partial class FeedBack : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string content = Request.QueryString["content"] + "";
            string capcode = Request.QueryString["capcode"] + "";

            string code = Session["code"] + "";
            if (capcode != code)
            {
                Response.Write("2");
                return;
            }
            else
            {
                Suggestion sinfo = new Suggestion();
                SuggestionHelper shelper = new SuggestionHelper();
                sinfo.SuggestionContent = content;
                shelper.AddSuggestion(sinfo);

                Response.Write("1");
                return;
            }
        }
    }
}